import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { ApprovalNotifyService } from './approval_notify.service';
import { CreateApprovalNotifyDto } from './dto/create-approval_notify.dto';
import { UpdateApprovalNotifyDto } from './dto/update-approval_notify.dto';

@Controller('approval-notify')
export class ApprovalNotifyController {
  constructor(private readonly approvalNotifyService: ApprovalNotifyService) {}

  @Post()
  create(@Body() createApprovalNotifyDto: CreateApprovalNotifyDto) {
    return this.approvalNotifyService.create(createApprovalNotifyDto);
  }

  @Get()
  findAll() {
    return this.approvalNotifyService.findAll();
  }


  @Get(':id')
  findOne(@Param('id') id: string) {
    return this.approvalNotifyService.findOne(id);
  }

  @Patch(':id')
  update(@Param('id') id: string, @Body() updateApprovalNotifyDto: UpdateApprovalNotifyDto) {
    return this.approvalNotifyService.update(id, updateApprovalNotifyDto);
  }

  @Delete(':id')
  remove(@Param('id') id: string) {
    return this.approvalNotifyService.remove(id);
  }
}
